package com.artifact.mit.mypoint.fragment.app;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentTabHost;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.artifact.mit.mypoint.R;

public class PointHistoryFragment extends Fragment {
	
	private FragmentTabHost mTabHost;

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		mTabHost = new FragmentTabHost(getActivity());
		mTabHost.setup(getActivity(), getChildFragmentManager(), R.id.realtabcontent);
		mTabHost.addTab(mTabHost.newTabSpec("a").setIndicator("Transaction History"), TransactionHistoryFragment.class, null);
		mTabHost.addTab(mTabHost.newTabSpec("b").setIndicator("Source Summary"), SourceSummaryFragment.class, null);
		return mTabHost;
	}
	
	@Override
    public void onDestroyView() {
        super.onDestroyView();
        mTabHost = null;
    }


}
